package com.sskj.level.presenter;

import com.sskj.common.base.HttpData;
import com.sskj.level.bean.SpreadBean;
import com.sskj.level.http.HttpConfig;
import com.sskj.level.ui.activity.ShareActivity;
import com.sskj.lib.http.CallBackOption;

/**
 * @author Hey
 * Create at  2019/08/29
 */
public class SharePresenter extends BasePresenter<ShareActivity> {

    public void apiUserRegisterlink() {
        httpService.apiUserRegisterlink().execute(new CallBackOption<HttpData<SpreadBean>>() {
        }
                .unLoadBind(mView)
                .execute(httpData -> {
                    if (httpData.getStatus() == HttpConfig.OK) {
                        mView.updateUI(httpData.getData());
                    }
                }));
    }
}
